.class Lcom/netease/newsreader/activity/NewsReader$8;
.super Ljava/lang/Object;
.source "NewsReader.java"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/NewsReader;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    .line 3947
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 2
    .parameter "view"
    .parameter "firstVisibleItem"
    .parameter "visibleItemCount"
    .parameter "totalItemCount"

    .prologue
    .line 3968
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    add-int v1, p2, p3

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Lcom/netease/newsreader/activity/NewsReader;->access$96(Lcom/netease/newsreader/activity/NewsReader;I)V

    .line 3969
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0, p4}, Lcom/netease/newsreader/activity/NewsReader;->access$97(Lcom/netease/newsreader/activity/NewsReader;I)V

    .line 3970
    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 4
    .parameter "view"
    .parameter "scrollState"

    .prologue
    .line 3950
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v3

    invoke-virtual {v3}, Landroid/widget/ListView;->getTag()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 3951
    .local v1, t:Ljava/lang/String;
    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    .line 3952
    .local v0, id:I
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$94(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v2

    if-lez v2, :cond_0

    const/16 v2, 0x64

    if-ne v0, v2, :cond_0

    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$95(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$94(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-ne v2, v3, :cond_0

    if-nez p2, :cond_0

    .line 3955
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$95(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$20(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v3

    if-eq v2, v3, :cond_0

    .line 3957
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$20(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z

    .line 3958
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$20(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/LinearLayout;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 3959
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$46(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/util/BasePageViewAdapter;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 3960
    iget-object v2, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v2}, Lcom/netease/newsreader/activity/NewsReader;->access$19(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/activity/NewsReader$8;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v3}, Lcom/netease/newsreader/activity/NewsReader;->access$95(Lcom/netease/newsreader/activity/NewsReader;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->setSelection(I)V

    .line 3963
    :cond_0
    return-void
.end method
